{% extends 'Base/main.content.submit.div.auto.html.twig' %}

        {% form_theme show 'Base/row.layout.html.twig' %}
{% block main %}
    {#{{ dump(show) }}#}
    {{ form_widget(show) }}
{% endblock %}
{% block myJs %}
    {% include 'Base/inc.js.article.upload.twig' %}
    {% include 'Base/inc.js.article.twig' %}
    {#{% include 'Base/inc.js.form.valid.twig' %}#}
    {#{% include 'Base/inc.js.date.picker.twig' %}#}

    <script>
        layui.use('form', function(){
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function(data){
                layer.msg(JSON.stringify(data.field));
                return false;
            });


            var laydate = layui.laydate;
            laydate.render({
                elem: '.layui-my-date' //或 elem: document.getElementById('test')、elem: lay('#test') 等
            });
            laydate.render({
                elem: '.layui-my-date-time' //或 elem: document.getElementById('test')、elem: lay('#test') 等
                ,type: 'datetime'
            });
            laydate.render({
                elem: '.layui-my-time' //或 elem: document.getElementById('test')、elem: lay('#test') 等
                ,type: 'time'
            });

        });
    </script>
{% endblock %}

